#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20220814.sql ./mysql/db
cp ../sql/ry_config_20220510.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../yl-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy yl-gateway "
cp ../yl-gateway/target/yl-gateway.jar ./yl/gateway/jar

echo "begin copy yl-auth "
cp ../yl-auth/target/yl-auth.jar ./yl/auth/jar

echo "begin copy yl-visual "
cp ../yl-visual/yl-monitor/target/yl-visual-monitor.jar  ./yl/visual/monitor/jar

echo "begin copy yl-modules-system "
cp ../yl-modules/yl-system/target/yl-modules-system.jar ./yl/modules/system/jar

echo "begin copy yl-modules-file "
cp ../yl-modules/yl-file/target/yl-modules-file.jar ./yl/modules/file/jar

echo "begin copy yl-modules-job "
cp ../yl-modules/yl-job/target/yl-modules-job.jar ./yl/modules/job/jar

echo "begin copy yl-modules-gen "
cp ../yl-modules/yl-gen/target/yl-modules-gen.jar ./yl/modules/gen/jar

